package com.su.lesson06;

import javax.swing.*;
import java.awt.*;
import java.util.Vector;

public class TextComboboDemo02 extends JFrame {
    public TextComboboDemo02() {
        Container container =getContentPane();
        Vector v = new Vector();
        JList list = new JList(v);
        v.add("1");
        v.add("2");
        v.add("3");


        container.add(list);
        setVisible(true);
        setSize(300, 300);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }


    public static void main(String[] args) {
        JFrame frame = new TextComboboDemo02();
    }
}
